using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace SoulDoorEngineSmart.Components.Audio
{
    public class AudioPlayer
    {
        internal static Game MyGame;
        static SongPlayer songPlayer = new SongPlayer();
        static SoundPlayer soundPlayer = new SoundPlayer();

        public static void SetupAudioPlayer(Game game)
        {
            MyGame = game;
        }

        public static void AddSound(string name)
        {
            soundPlayer.Add(name);
        }

        public static void AddSong(string name)
        {
            songPlayer.Add(name);
        }

        public static void PlaySound(string name)
        {
            soundPlayer.Play(name);
        }

        public static void PlaySong(string name)
        {
            songPlayer.Play(name);
        }

        public static void StopSong()
        {
            songPlayer.Stop();
        }

        public static void Pause()
        {
            soundPlayer.Pause();
        }

        public static void Resume()
        {
            soundPlayer.Resume();
        }

        public static void StopSound()
        {
            soundPlayer.Stop();
        }
    }
}
